<div class="login_div"><H1><%= I18n.t :logo_message %><br/></H1>
  <%= I18n.t :all_your_words %>
  <BR/>
   <a href="logout"><%= I18n.t :logout %></a>
  <BR/>
</div>

<div class="menu">
  <a href="../create_word/create"><%= I18n.t :you_can_add_word %></a>
</div>

<div align="center">
  <table class="all_words_table" cellspacing="5px" border="2px">
    <TR>
      <TD class="table_header"><%= I18n.t :original_word %> </TD>
      <TD class="table_header"><%= I18n.t :translations %></TD>
      <TD class="table_header"><%= I18n.t :invalid_translations %></TD>
      <TD></TD>
    </TR>
    <% @words.each do |word| %>
        <TR>
          <TD class="original_word"> <!-- original word -->
            <%= word.original_word %>
          </TD>
          <TD class="translations"> <!-- translations -->
            <% word.translations.each do |t| %>
                <% if t.is_valid == true %>
                    <%= t.trans %>
                    <br/>
                <% end %>
            <% end %>
          </TD>
          <TD class="translations"> <!-- invalid translations -->
            <% word.translations.each do |t| %>
                <% if t.is_valid == false %>
                    <%= t.trans %>
                    <br/>
                <% end %>
            <% end %>
          </TD>
          <TD class="controls">
            <!-- EDITING -->
            <a href="../create_word/edit?word=<%=word.id%>&should=edit"><%= I18n.t :control_edit %></a><br/>
            <a href="main?word=<%=word.id%>&should=remove"><%= I18n.t :control_remove %></a>
          </TD>
        </TR>
    <% end %>
  </table>
</div>